package org.nyl.java.control;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.nyl.java.model.dao.IConcursoDao;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class InicioController {

	private static final Logger logger = LoggerFactory
			.getLogger(InicioController.class);

	@Autowired
	@Qualifier("concursoDaoImpl")
	private IConcursoDao dao;

	@RequestMapping(value = "/inicio")
	protected ModelAndView handleRequest(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		if (logger.isInfoEnabled()) {
			logger.info("IN -> InicioController");
		}
		
		if (logger.isInfoEnabled()) {
			logger.info("OUT -> InicioController");
		}
		return new ModelAndView("inicio");
	}

}
